package com.chapter10;

/**
 * 模板方法模式
 */
public class Test {
    public static void main(String[] args) {
        Paper paper1 = new Answer1();
        paper1.Question1();
        paper1.Question2();
        paper1.Question3();

        Paper paper2 = new Answer2();
        paper2.Question1();
        paper2.Question2();
        paper2.Question3();

    }
}
